package org.example.fastproject.web.sys.model.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @Author 王海舟
 * @Date 2023/1/16 12:24
 * @PackageName:org.example.fastproject.web.sys.model.user.dto
 * @ClassName: UserLoginDto
 * @Description: 用户登录
 * @Version 1.0
 */
@Data
@ApiModel(description = "用户登录")
public class UserLoginDto {
    @ApiModelProperty("用户名")
    @NotEmpty(message = "用户名不能为空")
    private String name;

    @ApiModelProperty("密码")
    @NotEmpty(message = "密码不能为空")
    private String password;

    @ApiModelProperty("验证码对应的key")
    private String key;

    @ApiModelProperty("验证码")
    private String code;
}
